/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.xcxAdmin.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.xcxAdmin.dao.ZtWithdrawDao;
import com.jeesite.modules.xcxAdmin.entity.ZtWithdraw;

/**
 * 测试数据Service
 * 
 * @author ThinkGem
 * @version 2018-04-22
 */
@Service
@Transactional(readOnly = true)
public class ZtWithdrawService extends CrudService<ZtWithdrawDao, ZtWithdraw> {
	
	
	
	/**
	 * 获取单条数据
	 * 
	 * @param testData
	 * @return
	 */
	@Override
	public ZtWithdraw get(ZtWithdraw ztWithdraw) {
		ZtWithdraw entity = super.get(ztWithdraw);
		if (entity == null) {
			entity = new ZtWithdraw();
		}
		return entity;
	}
	
	
	/**
	 * 查询分页数据
	 * 
	 * @param page
	 *            分页对象
	 * @param testData
	 * @return
	 */
	@Override
	public Page<ZtWithdraw> findPage(Page<ZtWithdraw> page, ZtWithdraw ztWithdraw) {
		return super.findPage(page, ztWithdraw);
	}

	/**
	 * 保存数据（插入或更新）
	 * 
	 * @param testData
	 */
	@Override
	@Transactional(readOnly = false)
	public void save(ZtWithdraw ztWithdraw) {
		super.save(ztWithdraw);
		
	}
	
	@Transactional(readOnly = false)
	public void updateSjStatus(ZtWithdraw ztWithdraw) {
		dao.updateSjStatus(ztWithdraw);
		
	}

	
	/**
	 * 删除数据
	 * 
	 * @param testData
	 */
	@Override
	@Transactional(readOnly = false)
	public void delete(ZtWithdraw ztWithdraw) {
		super.delete(ztWithdraw);
	}
	
	
	

}